Skip to main content
PUT
/
api
/
productos
/
sku
/
{sku}
curl --location --request PUT 'https://api.iquea.com/api/productos/sku/IKEA-TABLE-001' \
--header 'Authorization: Bearer YOUR_ADMIN_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "precioCantidad": 279.99,
  "stock": 20,
  "es_destacado": false
}'
{
  "producto_id": 1,
  "sku": "IKEA-TABLE-001",
  "nombre": "Mesa de Comedor Moderna",
  "descripcion": "Mesa de comedor elegante con acabado en roble",
  "precioCantidad": 279.99,
  "precioMoneda": "USD",
  "dimensionesAlto": 75.0,
  "dimensionesAncho": 180.0,
  "dimensionesProfundo": 90.0,
  "es_destacado": false,
  "stock": 20,
  "imagen_url": "https://images.iquea.com/mesa-comedor-001.jpg",
  "categoria": {
    "categoria_id": 3,
    "nombre": "Mesas",
    "slug": "mesas"
  }
}

Authentication

This endpoint requires administrator authentication. Include a valid JWT token in the Authorization header.
Authorization
string
required
Bearer token for admin authenticationExample: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Path Parameters

sku
string
required
The Stock Keeping Unit (SKU) of the product to update

Request Body

All fields are optional. Only include the fields you want to update.
nombre
string
Product name (max 155 characters)
sku
string
New SKU code (max 50 characters, must be unique)
descripcion
string
Detailed product description
precioCantidad
decimal
Price amount
precioMoneda
string
Currency code (3 characters)
dimensionesAlto
double
Product height dimension
dimensionesAncho
double
Product width dimension
dimensionesProfundo
double
Product depth dimension
es_destacado
boolean
Whether the product should be featured
stock
integer
Available quantity in inventory
imagen_url
string
URL to product image
categoria
object
Category information

Response

Returns the updated product object with all current values.
producto_id
long
Unique identifier for the product
sku
string
Stock Keeping Unit
nombre
string
Product name
descripcion
string
Product description
precioCantidad
decimal
Price amount
precioMoneda
string
Currency code
dimensionesAlto
double
Height dimension
dimensionesAncho
double
Width dimension
dimensionesProfundo
double
Depth dimension
es_destacado
boolean
Featured status
stock
integer
Available quantity
imagen_url
string
Product image URL
categoria
object
Associated category
curl --location --request PUT 'https://api.iquea.com/api/productos/sku/IKEA-TABLE-001' \
--header 'Authorization: Bearer YOUR_ADMIN_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "precioCantidad": 279.99,
  "stock": 20,
  "es_destacado": false
}'
{
  "producto_id": 1,
  "sku": "IKEA-TABLE-001",
  "nombre": "Mesa de Comedor Moderna",
  "descripcion": "Mesa de comedor elegante con acabado en roble",
  "precioCantidad": 279.99,
  "precioMoneda": "USD",
  "dimensionesAlto": 75.0,
  "dimensionesAncho": 180.0,
  "dimensionesProfundo": 90.0,
  "es_destacado": false,
  "stock": 20,
  "imagen_url": "https://images.iquea.com/mesa-comedor-001.jpg",
  "categoria": {
    "categoria_id": 3,
    "nombre": "Mesas",
    "slug": "mesas"
  }
}

Status Codes

200
OK
Product successfully updated
403
Forbidden
Invalid or missing authentication token, or insufficient permissions
404
Not Found
Product with the specified SKU does not exist